package com.firewolf.hibernate.relationship.many_many_both2;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Role implements Serializable {

	private static final long serialVersionUID = 1456653714859318919L;

	/* ID */
	private Integer id;

	/* 名称 */
	private String name;

	/* 与RoleResource的一对多关系 */
	private Set<RoleResource> roleResources = new HashSet<RoleResource>();

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<RoleResource> getRoleResources() {
		return roleResources;
	}

	public void setRoleResources(Set<RoleResource> roleResources) {
		this.roleResources = roleResources;
	}

}